package com.ruoyi.basedata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.*;

import java.util.Date;

/**
 * 集中器命令下发日志对象 t_concentrator_command_logs
 *
 * @author ruoyi
 * @date 2023-12-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_concentrator_command_logs")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConcentratorCommandLogs extends BaseDO
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备归属水司 */
    @JsonProperty("tenantId")
    private String tenantId;

    /** 命令类型 */
    @Excel(name = "命令类型")
    @JsonProperty("commandType")
    private Integer commandType;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty("sendTime")
    private Date sendTime;

    /** 集中器操作的表编号 */
    @Excel(name = "集中器操作的表编号")
    @JsonProperty("terminalIds")
    private String terminalIds;

    @JsonProperty("feedback")
    private String feedback;

    @JsonProperty("concentratorId")
    private String concentratorId;

    @Excel(name = "备注")
    @JsonProperty("remark")
    private String remark;

    @JsonProperty("information")
    private String information;


    @TableField(exist = false)
    private String sheetsCode;

    @TableField(exist = false)
    private Long sysUserId;
}
